import request from '@/utils/request'

/**
 * 获取车辆能源类型和颜色
 * @param {} params 
 * @returns 
 */
export function carEnergy(params = {}) {
    return request({
        url: "/carEnergy",
        method: 'get',
        params
    })
}

/**
 * 查询司机列表
 * @param {*} params 
 * @returns 
 */
export function getCarList(params = {}) {
    return request({
        url: "/getCarList",
        method: "get",
        params
    })
}
/**
 * 退回司机
 * @param {id} data 
 * @returns 
 */
export function returnBackCar(data = {}) {
    return request({
        url: '/returnBackCar',
        method: "post",
        data
    })
}

export function getCarDetail(params = {}) {
    return request({
        url: "/getCarDetail",
        method: 'get',
        params
    })
}
/**
 * 车辆审核
 * @param {一大推} data 
 * @returns 
 */
export function carReview(data = {}) {
    return request({
        url: "/carReview",
        method: 'post',
        data
    })
}

/**
 * 上传司机
 * @param {id} data 
 * @returns 
 */
export function uploadCar(data = {}) {
    return request({
        url: "/uploadCar",
        method: "post",
        data
    })
}

export function deleteCar(data = {}) {
    return request({
        url: "/deleteCar",
        method: 'post',
        data
    })
}